﻿using Eqwww.Code;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using Eqwww.Domain.Models.SystemManage;

namespace Eqwww.Web.Areas.SystemManage.Models.Organize
{
    public class CreateViewModel
    {
        [Required(ErrorMessage = "本项不能为空")]
        [Display(Name = "编码")]
        public string Code { get; set; }

        [Required(ErrorMessage = "本项不能为空")]
        [Display(Name = "名称")]
        public string Name { get; set; }

        [Display(Name = "上级组织")]
        public string ParentId { get; set; }
        public string ParentName { get; set; }

        [Display(Name = "描述")]
        public string Description { get; set; }

        [Required(ErrorMessage = "本项不能为空")]
        [Display(Name = "组织类型")]
        public OrganizeType? OrganizeType { get; set; }

        [Required(ErrorMessage = "本项不能为空")]
        [Display(Name = "排序码")]
        public int? SortCode { get; set; }

        [Display(Name = "单位类型")]
        public OrganizeBelongType? OrganizeBelongType { get; set; }
    }
}
